function(doc){
	if(doc.doctype == 'product' && doc.prices && parseFloat(doc.prices[0]['price'])){
		emit([doc.topcategorycode, doc.leafcategorycode, doc.supplierid],  parseFloat(doc.prices[0]['price']));
   }
}